package cadc.models;

import java.util.Date;

import com.windpicker.common.models.Model;

public class Account extends Model {
	
	private static final long serialVersionUID = 561618265680590477L;
	
	private String name;
	private String password;
	private Date registrationTime;
	private boolean loggedin;
	
	public void destroy(){
		super.setId(0);
		this.name = null;
		this.password = null;
		this.setLoggedin(false);
	}
	
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPassword() {
		return password;
	}
	public void setLoggedin(boolean loggedin) {
		this.loggedin = loggedin;
	}
	public boolean isLoggedin() {
		return loggedin;
	}

	public void setRegistrationTime(Date registrationTime) {
		this.registrationTime = registrationTime;
	}

	public Date getRegistrationTime() {
		return registrationTime;
	}

}
